package com.bestcem.xm.deliver.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bestcem.xm.component.mybatis.base.BaseEntity2;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * @TableName ds_deliver_smsrecord
 */
@TableName(value = "ds_deliver_smsrecord")
@Data
@EqualsAndHashCode(callSuper = true)
public class DeliverSmsRecord extends BaseEntity2 {
    @TableId(value = "id")
    private String id;

    /**
     * 投放记录id
     */
    @TableField(value = "sms_deliver_id")
    @JsonProperty("sms_deliver_id")
    private String smsDeliverId;

    /**
     * 用户ID
     */
    @JsonProperty("member_id")
    @TableField(value = "member_id")
    private String memberId;

    /**
     * 投放id
     */
    @TableField(value = "deliver_id")
    @JsonProperty("deliver_id")
    private String deliverId;

    /**
     * 投放组id
     */
    @TableField(value = "deliver_group_id")
    @JsonProperty("deliver_group_id")
    private String deliverGroupId;

    /**
     * 短信内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 参数
     */
    @TableField(value = "params")
    private String params;

    /**
     * 用户名
     */
    @TableField(value = "username")
    private String username;

    /**
     * 联系电话
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 第三方标识号
     */
    @TableField(value = "msgid")
    private String msgid;

    /**
     * 记录描述
     */
    @TableField(value = "msg")
    private String msg;

    /**
     * 短信占用长度
     */
    @TableField(value = "length")
    private Integer length;

    /**
     * 账单
     */
    @TableField(value = "balance")
    private Double balance;

    /**
     * 发送类型
     */
    @TableField(value = "s_type")
    @JsonProperty("s_type")
    private Integer sType;

    /**
     * status
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 二次投放的记录id
     */
    @TableField(value = "again_deliver_record_id")
    @JsonProperty("again_deliver_record_id")
    private String againDeliverRecordId;

    /**
     * 催答记录id
     */
    @TableField(value = "deliver_urge_id")
    @JsonProperty("deliver_urge_id")
    private String deliverUrgeId;

    /**
     * 短信发送完成时间
     */
    @TableField(value = "receive_time")
    @JsonProperty("receive_time")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime receiveTime;
}